package com.b2c.impl;


import com.b2c.member.MembersDao;
import com.b2c.membrer.MembersEntity;
import com.b2c.MembersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;
import java.util.Map;



@Service("membersService")
public class MembersServiceImpl implements MembersService {
	@Autowired
	private MembersDao membersDao;
	
	@Override
	public MembersEntity queryObject(Integer id){
		return membersDao.queryObject(id);
	}
	
	@Override
	public List<MembersEntity> queryList(Map<String, Object> map){
		return membersDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return membersDao.queryTotal(map);
	}
	
	@Override
	public void save(MembersEntity members){
		membersDao.save(members);
	}
	
	@Override
	public void update(MembersEntity members){
		membersDao.update(members);
	}
	
	@Override
	public void delete(Integer id){
		membersDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		membersDao.deleteBatch(ids);
	}
	
}
